#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QLayout>
#include <QPushButton>
#include <QSpinBox>
#include <QCoreApplication>
#include <QSettings>

#include "gamewindowlabel.h"


class MainWidget : public QWidget
{
    Q_OBJECT

    QGridLayout *layout;
    GameWindowLabel *lblGameWindow;
    QSpinBox *spinMaxLvl;

    QLabel *lblStatistics;


    bool keyPressFlag[8];

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

    int getMaxLvl(void);
    void updateStatistic(int rightCnt, int wrongCnt);

protected:
    void keyPressEvent(QKeyEvent *ev) override;
    void keyReleaseEvent(QKeyEvent *ev) override;

};
#endif // MAINWIDGET_H
